
#ifndef GAME_H
#define GAME_H


#include <QMainWindow>
#include<QPushButton>
#include<QTime>
#include<QPainter>
#include<QKeyEvent>
#include<QMessageBox>
#include<QDebug>
#include<QRandomGenerator>

class game : public QMainWindow
{
    Q_OBJECT
public:
    explicit game(QWidget *parent = nullptr);
    void paintEvent(QPaintEvent *);
    void keyPressEvent(QKeyEvent *event);
    void on_pushButton_clicked();
    void PressUp();
    void PressDown();
    void PressLeft();
    void PressRight();
    void myRand();

    QPushButton *button;
    int s[4][4];
    int score=0;
    bool state;
    struct Ns{
        int i;
        int j;
    };
public slots:
    void slotStart();
signals:

};

#endif // GAME_H
